.class final Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog$2;
.super Ljava/lang/Object;
.source "TutorialsAskDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog;->show(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$ctx:Landroid/content/Context;

.field final synthetic val$dontShowAgain:Landroid/widget/CheckBox;


# direct methods
.method constructor <init>(Landroid/widget/CheckBox;Landroid/content/Context;)V
    .locals 0

    .line 44
    iput-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog$2;->val$dontShowAgain:Landroid/widget/CheckBox;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog$2;->val$ctx:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 1

    .line 46
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog$2;->val$dontShowAgain:Landroid/widget/CheckBox;

    invoke-virtual {p1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 47
    sget-object p1, Llt/noframe/gpsfarmguide/utils/Preferences;->RUN_TUTORIALS_DIALOG_SKIP:Llt/minvib/magicpreferences/MagicBooleanPreference;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TutorialsAskDialog$2;->val$ctx:Landroid/content/Context;

    const/4 v0, 0x1

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Llt/minvib/magicpreferences/MagicBooleanPreference;->set(Landroid/content/Context;Ljava/lang/Boolean;)V

    :cond_0
    return-void
.end method
